package com.one.blocks.common.response;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * @author linfuxin Created on 2022-02-14 10:42:43
 */
@Data
@ToString(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class WebPageResponse<T> implements Serializable {

    /**
     * 响应数据
     */
    private List<T> data;

    /**
     * 响应码
     */
    private int code;

    /**
     * 信息提示
     */
    private String msg;

    /**
     * 总记录数
     */
    private long total;
}
